
import bgSrc from 'common/asset/img/background/background.jpg';


import wantedSrc from 'common/asset/img/boxes/wanted.png';
import redCoralSrc from 'common/asset/img/boxes/redCoral.png';
import bookSrc from 'common/asset/img/boxes/book.png';
import dendrobiumSrc from 'common/asset/img/boxes/dendrobium.png';
import fishSrc from 'common/asset/img/boxes/fish.png';

import itemBgSrc from 'common/asset/img/items/itemBg.png';
import stickSrc from 'common/asset/img/boxes/stickBox.png';
import woodenBox1Src from 'common/asset/img/boxes/woodenBox1.png';
import woodenBox2Src from 'common/asset/img/boxes/woodenBox2.png';
import octopusSrc from 'common/asset/img/boxes/octopus.png';
import ghostSrc from 'common/asset/img/boxes/ghost.png';
import chest1Src from 'common/asset/img/boxes/chest1.png';
import chest2Src from 'common/asset/img/boxes/chest2.png';
import doorSrc from 'common/asset/img/boxes/door.jpg';

import sunBlockSrc from 'common/asset/img/items/sunBlock.png';
import needleSrc from 'common/asset/img/items/needle.png';
import amethystSrc from 'common/asset/img/items/amethyst.png';
import glassSrc from 'common/asset/img/items/glass.png';
import inkSrc from 'common/asset/img/items/ink.png';
import posterSrc from 'common/asset/img/items/poster.png';

import shakeSrc from 'common/asset/img/game/shake.png';
import unOpenPromptBgSrc from 'common/asset/img/game/unOpenPromptBg.png';
import modalContentSrc from 'common/asset/img/game/modalContent.png';
import modalSmallContentSrc from 'common/asset/img/game/modalSmallContent.png';


const GAME = {
  background: {
    src: bgSrc,
    width: 0,
    height: 1334,
    boxes: {
      wanted: {
        showSrc: wantedSrc,
        width: 144,
        height: 219,
        top: 336,
        left: 1056,
        // unOpenTexts: '铁柱更大了,这样是撬不开宝箱锁的',
        justShow: true,
        useText: '  因厌恶晒太阳,导致脾气异常暴躁,残忍杀\n害人类王子,并常年在太平洋海域打劫商船,现\n' +
        '全球通缉,缔约国警方应提供全力协助,同时提\n供重要线索和缉拿有功者给予$10000重奖。  ',
      },
      redCoral: {
        showSrc: redCoralSrc,
        width: 284,
        height: 280,
        top: 976,
        left: 479,
        justShow: true,
        getText: '【红珊瑚】',
        useText: '"别戳啦!我可是珍惜物种,戳坏了怎\n么办～"',
      },
      book: {
        showSrc: bookSrc,
        width: 252,
        height: 651,
        top: 175,
        left: 1793,
        justShow: true,
        getText: '【裴教授的日记】',
        useText: '"研究了这么久,终于找到比较好的防晒\n方案了!但怎样更完美?不如给瓶盖加个\n小科技把～"',
      },
      dendrobium: {
        showSrc: dendrobiumSrc,
        width: 222,
        height: 234,
        top: 553,
        left: 1502,
        justShow: true,
        getText: '【石斛兰】',
        useText: '人鱼花高价钱请人从海拔1600米高原采集\n来的仙草石斛兰，\n具有滋养，修护肌肤的神奇功效...',
      },
      sun: {
        // showSrc: dendrobiumSrc,
        width: 346,
        height: 322,
        top: 136,
        left: 1304,
        unOpenTexts: '诅咒力量太强,还是别太靠近窗户了...',
        // openTexts: '恭喜你获得【紫色水晶 球】和\n【海螺杯】',
        openKey: 'null',
        // justShow: true,
        // getText: '【石斛兰】',
        // useText: '人鱼花高价钱请人从海拔1600米高原采集\n来的仙草石斛兰，\n具有滋养，修护肌肤的神奇功效...',
      },
      fish: {
        src: fishSrc,
        showSrc: fishSrc,
        width: 346,
        height: 345,
        top: 795,
        left: 1223,
        justShow: true,
        getText: '【受伤的鮟鱇鱼】',
        useText: '"别...别打我了!我头顶上的不是阳光!"',
      },
      stick: {
        src: stickSrc,
        width: 179,
        height: 489,
        top: 291,
        left: 837,
        unOpenTexts: '铁柱更大了,这样是撬不开宝箱锁的',
        openKey: null,
        getItems: [{
          key: 'needle',
          src: needleSrc,
        }],
      },
      woodenBox: {
        src: woodenBox1Src,
        width: 244,
        height: 198,
        top: 806,
        left: 277,
        smallContent: true,
        twoContent: true,
        tewContentTop: 420,
        unOpenTexts: '被锁住了,门旁的铁棒也许藏打开的\n线索...',
        openTexts: '恭喜你获得【紫色水晶 球】和\n【海螺杯】',
        openKey: 'needle',
        getItems: [{
          key: 'amethyst',
          src: amethystSrc,
        }, {
          key: 'glass',
          src: glassSrc,
        }],
      },
      octopus: {
        src: octopusSrc,
        width: 353,
        height: 301,
        top: 635,
        left: 757,
        unOpenTexts: '想要墨汁,去木宝箱找个容器吧~',
        playTexts: '摇晃章鱼, 取得墨汁!',
        playIcon: shakeSrc,
        openTexts: '获得一杯墨汁!\n喝下能让冤魂忘记所有爱恨情仇',
        openKey: 'glass',
        getItems: [{
          key: 'ink',
          src: inkSrc,
        }],
      },
      ghost: {
        src: ghostSrc,
        width: 260,
        height: 330,
        top: 369,
        left: 102,
        twoContent: true,
        tewContentTop: 700,
        tewContentSmall: true,
        playTexts: '恭喜您获得【破解阳光诅咒秘籍】',
        unOpenTexts: '想要打开铁宝箱的密码,先去章鱼那帮我找\n到投胎的方法吧！',
        openTexts: '恭喜你获得【植物医生 防晒节海报】',
        openKey: 'ink',
        getItems: [{
          key: 'poster',
          src: posterSrc,
        }],
      },
      chest: {
        src: chest1Src,
        width: 237,
        height: 210,
        top: 843,
        left: 1691,
        smallContent: true,
        unOpenTexts: '去问问王子的魂魄, 他可能知道密码',
        openTexts: '获得【真·DR PLANT 水漾柔润防晒乳\n选用高山植物,经过 30 年研究,\n750 天联合研发, 千人测评,\n好评率高达 93%的防晒乳! \n再也丌用惧怕阳光了,快逃出海螺房吧',
        playTexts: '发现三支防晒乳 只有一支是真的,是哪支呢?”试试能辨 别真假的水晶球',
        openKey: 'poster',
        getItems: [{
          key: 'sunBlock',
          src: sunBlockSrc,
        }],
      },
      door: {
        width: 276,
        height: 469,
        top: 304,
        left: 508,
        unOpenTexts: '没找到破解方法之前,还不能出去...',
        openTexts: null,
        openKey: 'sunBlock',
        getItems: [],
      },
    },
  },
  itemFloor: {
    unOpenPrompt: {
      top: 20,
      width: 710,
      height: 267,
      fontSize: 28,
      fontNum: 19,
      lineHeight: 40,
      disappearTime: 1000, // ms
      bgSrc: unOpenPromptBgSrc,
    },
    itemStyle: {
      width: 126,
      height: 126,
      bottom: 15,
      margin: 24,
    },
    items: {
      bg: {
        src: itemBgSrc,
        bottom: 0,
      },
      1: {},
      2: {},
      3: {},
      4: {},
    },
  },
  modal: {
    width: 750,
    height: 1334,
    background: 0x242424,
    content: {
      src: modalContentSrc,
      width: 710,
      height: 691,
      top: 20,
    },
    smallContent: {
      src: modalSmallContentSrc,
      width: 710,
      height: 400,
      top: 20,
    },
    XSmallContent: {
      src: unOpenPromptBgSrc,
      width: 710,
      height: 267,
      top: 20,
    },
    // closeBtn: {
    //   radius: 100,
    //   background: 0x676767,
    // }
  }
};

export default GAME;
